<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('村民信息列表')" />
</head>
<body class="gray-bg">
    <div class="container-div">
        <form id="form1">
            <input name="villageId" type="hidden" th:if="${villageId != null}" th:value="${villageId}">
        </form>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        function submitHandler() {
        }
        var prefix = ctx + "jjm/clientUser";
        var keepwarmTypeDatas = [[${@dict.getType('keep_warm_type')}]];
        var page = [[${page}]]
        $(function() {
            var options = {
                url: prefix + "/detailList?page=" + page,
                modalName: "村民信息",
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                columns: [{
                    field: 'id',
                    title: '编号'
                },
                {
                    field: 'masterName',
                    title: '户主姓名'
                },
                {
                    field: 'masterIdentityCardNumber',
                    title: '身份证号'
                },
                {
                    field: 'masterPhoneNumber',
                    title: '手机号'
                },
                {
                    field: 'keepwarmType',
                    title: '取暖方式',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(keepwarmTypeDatas, value);
                    }
                },
                {
                    field: 'totalAmount',
                    title: '购洁净煤总量'
                }]
            }
            $.table.init(options);
        });
    </script>
</body>
</html>